﻿// -----------------------------------------------------------------------
// <copyright file="DataReaderSourceBase.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace Dhgms.TplHelper.Model.DataReaderProducer
{
    using System;
    using System.Data;
    using System.Data.Common;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public abstract class DataReaderProducerBase : IDataReaderProducer
    {
        /// <summary>Produces and Consumes the data</summary>
        /// <param name="dataReaderConsumingAction">The data reader consuming action.</param>
        /// <returns>Number of records processed.</returns>
        public abstract long ProduceAndConsume(Func<IDataReader, long> dataReaderConsumingAction);
    }
}
